
<?php

	$baseUrl = Yii::app()->baseUrl; 
	$cs = Yii::app()->getClientScript();	
	$cs->registerScriptFile($baseUrl.'/js/jquery-1.10.1.min.js');
	$cs->registerScriptFile($baseUrl.'/js/jquery-1.9.0.min.js');
	$cs->registerScriptFile($baseUrl.'/js/jquery.nivo.slider.js');
	$cs->registerScriptFile($baseUrl.'/js/script-slider-p.js');
	//Import CSS
	$cs->registerCssFile($baseUrl.'/css/nivo-slider.css');
	$cs->registerCssFile($baseUrl.'/css/default/default.css');

	$model=StkProducto::model()->findByPk($id);
?>
<div id="pro-cont-txt"><strong style="color:#fff; text-transform:uppercase;">
      Características
    </strong><br></br>
	<?php
		echo $model->Texto;
	?>
</div>
<div class="slider-wrapper theme-default" >
	<div id="slider-in" class="nivoSlider">
		<?php
				$criteria = new CDbCriteria;
				$criteria=array('condition'=>('Producto_Id=:id AND Estado!="E"'), 'params'=>array(':id'=>$model->Id));
				$model = StkImagen::model()->findAll($criteria);
				
				?>
				<?php foreach($model as $iter){ ?>
				<img src="<?php echo "images/uploads/".$iter->Url; ?>" alt="" title="" />
				<?php } ?>
				<!--
					<img src="images/productos/foto5.jpg" alt="" title="" />
					<img src="images/productos/foto3.jpg" alt="" title="" />
					<img src="images/productos/foto1.jpg" alt="" title="" />
					<img src="images/productos/foto2.jpg" alt="" title="" />
					<img src="images/productos/foto4.jpg" alt="" title="" />-->
	</div>
	<script>

	</script>
</div>